lst = [235,5,567,99,125,4,56,324]
n = len(lst)
for i in range(0,n-1):
	_key = i
	for j in range(i+1,n):
		if lst[j] < lst[_key]:
			_key = j
	lst[i],lst[_key] = lst[_key],lst[i]
print(lst)
